package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 角色权限 
 * @Author  yanluping@outlook.com
 * @Date 2020-01-09 19:15:53 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "角色权限")
@Table ( name ="Role_Authorize")
public class RoleAuthorize  implements Serializable {

	private static final long serialVersionUID =  158584175697714495L;

	/**
	 * 角色权限ID
	 */
	@ApiModelProperty(value = "角色权限ID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Role_Authorize_Id" )
	private Long roleAuthorizeId;

	/**
	 * 授权ID
	 */
	@ApiModelProperty(value = "授权ID")
   	@Column(name = "Authorize_Id" )
	private Long authorizeId;

	/**
	 * 项目角色ID
	 */
	@ApiModelProperty(value = "项目角色ID")
   	@Column(name = "Project_Role_Id" )
	private Long projectRoleId;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建时间",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	public Long getRoleAuthorizeId() {
		return this.roleAuthorizeId;
	}

	public void setRoleAuthorizeId(Long roleAuthorizeId) {
		this.roleAuthorizeId = roleAuthorizeId;
	}

	public Long getAuthorizeId() {
		return this.authorizeId;
	}

	public void setAuthorizeId(Long authorizeId) {
		this.authorizeId = authorizeId;
	}

	public Long getProjectRoleId() {
		return this.projectRoleId;
	}

	public void setProjectRoleId(Long projectRoleId) {
		this.projectRoleId = projectRoleId;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "{" +
					"roleAuthorizeId='" + roleAuthorizeId + '\'' +
					"authorizeId='" + authorizeId + '\'' +
					"projectRoleId='" + projectRoleId + '\'' +
					"createDate='" + createDate + '\'' +
				'}';
	}

}
